﻿﻿﻿export default [
  {
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './User/login',
          },
        ],
      },
      {
        path: '/',
        component: '../layouts/SecurityLayout',
        routes: [
          {
            path: '/',
            component: '../layouts/BasicLayout',
            authority: ['admin', 'jxs-1','store','checker','financial','observer','admin2','wbsc','admin3','analysis','ns'],
            routes: [
              {
                path: '/',
                authority: ['admin', 'store','checker','financial','observer','admin2','wbsc','admin3','analysis','ns'],
                redirect: '/welcome',
              },
              {
                path: '/welcome',
                name: 'welcome',
                icon: 'smile',
                component: './Welcome',
                authority: ['admin', 'store','checker','financial','observer','admin2','wbsc','admin3','analysis','ns'],
              },
              {
                path: '/master',
                name: 'master',
                icon:'AppstoreOutlined',
                authority: ['admin','admin3'],
                routes: [
                  {
                    path: '/product',
                    name: 'product',
                    routes: [
                      // {
                      //   path: '/master/product/line',
                      //   name: 'line',
                      //   authority: ['admin'],
                      //   component: './MasterData/Product/line',
                      // },
                      {
                        path: '/master/product/sku',
                        name: 'sku',
                        authority: ['admin'],
                        component: './MasterData/Product',
                      },
                      {
                        path: '/master/product/package',
                        name: 'package',
                        component: './MasterData/Product/pack',
                      },
                      {
                        path: '/master/product/price',
                        name: 'price',
                        authority: ['admin'],
                        component: './MasterData/Product/price',
                      }
                    ]
                  },
                  {
                    path: '/master/dealer',
                    name: 'dealer',
                    component: './MasterData/Dealer',
                  },
                  {
                    path: '/master/hospital',
                    name: 'hospital',
                    icon:'BankOutlined',
                    authority: ['admin'],
                    routes: [
                      {
                        path: '/master/hospital/hospital',
                        name: 'hospital',
                        component: './MasterData/Hospital',
                      },
                      {
                        path: '/master/hospital/contact',
                        name: 'contact',
                        component: './MasterData/Hospital/contact',
                      },
                      {
                        path: '/master/hospital/device',
                        name: 'device',
                        component: './MasterData/Hospital/zjl',
                      },
                    ]
                  },
                  {
                    path: '/master/area',
                    name: 'area',
                    component: './MasterData/Area',
                  },
                  {
                    path: '/master/expert',
                    name: 'expert',
                    component: './MasterData/Expert',
                  },
                  
                ]
              },
              
              
              {
                path: '/kol',
                name: 'kol',
                icon:'CoffeeOutlined',
                // authority: ['admin'],
                // component: './MasterData/Hospital/KOL',
                routes: [
                  {
                    path: '/kol/my',
                    name: 'my',
                    component: './KOL/my',
                  },
                  {
                    path: '/kol/plan',
                    name: 'plan',
                    component: './KOL/plan',
                  },
                  {
                    path: '/kol/kol',
                    name: 'kol',
                    component: './KOL/kol',
                  },
                ]
              },
              {
                path: '/markets',
                name: 'markets',
                icon:'PropertySafetyOutlined',
                authority: ['admin'],
                routes: [
                  {
                    path: '/markets/plan',
                    name: 'plan',
                    component: './Markets/plan',
                  },
                  {
                    path: '/markets/info',
                    name: 'info',
                    component: './Markets/info',
                  },
                  {
                    path: '/markets/summary',
                    name: 'summary',
                    component: './Markets/summary',
                  },
                  // {
                  //   path: '/markets/apply',
                  //   name: 'apply',
                  //   component: './Markets/apply',
                  // },
                ]
              },
              {
                path: '/sale',
                name: 'sale',
                icon: 'PayCircleOutlined',
                routes: [
                  // {
                  //   path: '/sale/mpc',
                  //   name: 'mpc',
                  //   component: './Sale/mpc',
                  // },
                  {
                    path: '/sale/line',
                    name: 'line',
                    component: './Sale/line',
                  },
                  {
                    path: '/sale/chance',
                    name: 'chance',
                    component: './Sale/chance',
                  },
                  // {
                  //   path: '/sale/visit',
                  //   name: 'visit',
                  //   component: './Sale/visit',
                  // },
                  {
                    path: '/sale/ticket',
                    name: 'ticket',
                    component: './Sale/ticket',
                  },{
                    path: '/sale/bidding',
                    name: 'bidding',
                    routes: [
                      {
                        path: '/sale/bidding/plan',
                        name: 'plan',
                        component: './Sale/bidding',
                      },
                      {
                        path: '/sale/bidding/msg',
                        name: 'msg',
                        component: './Sale/bidding_1',
                      },
                      {
                        path: '/sale/bidding/detail',
                        name: 'detail',
                        component: './Sale/bidding_2',
                      }
                    ]
                  },{
                    path: '/sale/competition',
                    name: 'competition',
                    // component: './Sale/competition',
                    routes: [
                    {
                      path: '/sale/competition/baseinfo',
                      name: 'baseinfo',
                      component: './Sale/competition',
                    },
                    {
                      path: '/sale/competition/competition',
                      name: 'competition',
                      component: './Sale/equipment_2',
                    }
                   ]
                  },
                  // ,{
                  //   path: '/sale/forecast',
                  //   name: 'forecast',
                  //   component: './Sale/forecast',
                  // },
                  {
                    path: '/sale/contract',
                    name: 'contract',
                    component: './Sale/contract',
                  },
                  {
                    path: '/sale/order',
                    name: 'order',
                    component: './Sale/order',
                  },
                  {
                    path: '/sale/recv_ticket',
                    name: 'recv_ticket',
                    component: './Order/recv_ticket',
                  },{
                    path: '/sale/equipment',
                    name: 'equipment',
                    // component: './Sale/equipment',
                    component: './Sale/equipment',
                    // routes: [
                    // {
                      // path: '/sale/equipment/apply',
                      // name: 'apply',
                      // component: './Sale/equipment',
                    // },
                    // {
                    //   path: '/sale/equipment/competition',
                    //   name: 'competition',
                    //   component: './Sale/equipment_2',
                    // }
                  //  ]
                  }
                ]
              },
              // {
              //   path: '/masterdata',
              //   name: 'masterdata',
              //   icon: 'database',
              //   authority: ['admin','checker','financial','admin2','sale','sale0','admin3'],
              //   hideInBreadcrumb:true,
              //   routes: [
              //     {
              //       path: '/masterdata/factory',
              //       name: 'factory',
              //       authority: ['admin'],
              //       component: './MasterData/Product/factory',
              //     },
              //     {
              //       path: '/masterdata/dept',
              //       name: 'dept',
              //       authority: ['admin'],
              //       component: './MasterData/Product/dept',
              //     },
              //     // {
              //     //   path: '/masterdata/dealer',
              //     //   name: 'dealer',
              //     //   authority: ['admin','checker','financial','admin2','admin3'],
              //     //   component: './MasterData/Dealer',
              //     // },
              //     // {
              //     //   path: '/masterdata/hospital',
              //     //   name: 'hospital',
              //     //   authority: ['admin','admin2','sale','sale0','admin3'],
              //     //   component: './MasterData/Hospital',
              //     // },
              //     {
              //       path: '/masterdata/account',
              //       name: 'account',
              //       authority: ['admin','admin2','admin3'],
              //       component: './MasterData/Account',
              //     },
              //     {
              //       path: '/masterdata/sealteam',
              //       name: 'sealteam',
              //       authority: ['admin','admin2','admin3'],
              //       routes: [
              //         {
              //           path: '/masterdata/sealteam/area',
              //           name: 'area',
              //           component: './MasterData/Sealteam/area',
              //         },
              //         {
              //           path: '/masterdata/sealteam/sale',
              //           name: 'sale',
              //           component: './MasterData/Sealteam',
              //         },
              //         {
              //           path: '/masterdata/sealteam/team',
              //           name: 'team',
              //           component: './MasterData/Sealteam/team',
              //         }
              //       ],
              //     },
              //   ],
              // },
              {
                path: '/approval',
                name: 'approval',
                icon: 'form',
                authority: ['admin','checker','financial'],
                hideInBreadcrumb:true,
                routes: [
                  {
                    path: '/approval/hospital',
                    name: 'ticket',
                    component: './Approval/ticket',
                  },
                  {
                    path: '/approval/try',
                    name: 'try',
                    component: './Approval/ticket',
                  },
                  {
                    path: '/approval/ticket',
                    name: 'ticket',
                    component: './Approval/ticket',
                  },
                  {
                    path: '/approval/contact',
                    name: 'contact',
                    component: './Approval/ticket',
                  },
                ],
              },
              // {
              //   path: '/order',
              //   name: 'order',
              //   icon: 'carryOut',
              //   hideInBreadcrumb:true,
              //   routes: [
              //     {
              //       path: '/order/order',
              //       name: 'order',
              //       component: './Order',
              //     },
              //     {
              //       path: '/order/delivery',
              //       name: 'delivery',
              //       component: './Order/Delivery',
              //     },
              //     {
              //       path: '/order/sent',
              //       name: 'sent',
              //       component: './Order/Sent',
              //     },
              //     // {
              //     //   path: '/order/return_ticket',
              //     //   name: 'return_ticket',
              //     //   component: './Order/return_ticket',
              //     // },
              //     // {
              //     //   path: '/order/install',
              //     //   name: 'install',
              //     //   component: './Order/install',
              //     // },
              //     // {
              //     //   path: '/order/myOrder',
              //     //   name: 'myOrder',
              //     //   authority: ['jxs-1'],
              //     //   component: './Order/MyOrder',
              //     // }
              //   ],
              // },
             
               {
                path: '/statistics',
                name: 'statistics',
                icon: 'BarChartOutlined',
                hideInBreadcrumb:true,
                routes: [
                  {
                    path: '/statistics/chance',
                    name: 'chance',
                    component: './Statistics/chance',
                  },
                  {
                    path: '/statistics/activity',
                    name: 'activity',
                    component: './Statistics/activity',
                  },
                  {
                    path: '/statistics/return',
                    name: 'return',
                    component: './Statistics/return',
                  },{
                    path: '/statistics/sale',
                    name: 'sale',
                    component: './Statistics/sale',
                  },{
                    path: '/statistics/visit',
                    name: 'visit',
                    component: './Statistics/visit',
                  }
                ]
              },
              // {
              //   path: '/rebate',
              //   name: 'rebate',
              //   icon: 'AccountBook',
              //   authority: ['admin','checker','admin3','jxs-1','analysis','ns'],
              //   hideInBreadcrumb:true,
              //   routes: [
              //     {
              //       path: '/rebate/record',
              //       name: 'record',
              //       component: './Rebate',
              //     },
              //     {
              //       path: '/rebate/gift',
              //       name: 'gift',
              //       authority: ['admin','admin3','jxs-1','checker','analysis','ns'],
              //       component: './MasterData/Gift'
              //     },
              //     {
              //       path: '/rebate/calc',
              //       name: 'calc',
              //       authority: ['admin'],
              //       routes: [
              //         {
              //           path: '/rebate/calc/service',
              //           name: 'service',
              //           component: './Rebate/provider'
              //         },
              //         {
              //           path: '/rebate/calc/order',
              //           name: 'order',
              //           component: './Rebate/order'
              //         },
              //         {
              //           path: '/rebate/calc/batch_order',
              //           name: 'batch_order',
              //           component: './Rebate/order_batch'
              //         },
              //         {
              //           path: '/rebate/calc/upload',
              //           name: 'upload',
              //           component: './Rebate/upload'
              //         },
              //         {
              //           path: '/rebate/calc/statistics',
              //           name: 'statistics',
              //           component: './Rebate/statistics'
              //         },
              //         {
              //           path: '/rebate/calc/unstatistics',
              //           name: 'unstatistics',
              //           component: './Rebate/unstatistics'
              //         },
              //       ]
              //     },
              //   ],
              // },
              {
                path: '/system',
                name: 'system',
                icon: 'Setting',
                authority: ['admin'],
                hideInBreadcrumb:true,
                routes: [
                  {
                    path: '/system/base',
                    name: 'base',
                    component: './System/Base',
                  },
                  {
                    path: '/system/user',
                    name: 'user',
                    component: './System/User',
                  },
                  {
                    path: '/system/loger',
                    name: 'loger',
                    component: './System/Loger',
                  },
                  {
                    path: '/system/menu',
                    name: 'menu',
                    component: './System/Menu',
                  }
                ],
              },
              {
                path: '/account',
                hideInBreadcrumb:true,
                routes: [
                  {
                    path: '/account/pass',
                    name: 'pass',
                    component: './Pass',
                  },
                ],
              },
              {
                component: './404',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
    ],
  },
  {
    component: './404',
  },
];
